// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   ValidataNumbers.java

package validata;


public class ValidataNumbers
{

	public boolean bool;
	public boolean flag;

	public ValidataNumbers()
	{
	}

	public boolean validata(String s[])
	{
		for (int j = 0; j < s.length; j++)
		{
			int x = 0;
			int y = 0;
			if (!s[j].equals(""))
			{
				char chars[] = s[j].toCharArray();
				if (chars[0] == '.')
				{
					x++;
					y++;
				} else
				if (chars[0] == '+' || chars[0] == '-' || chars[0] >= '0' && chars[0] <= '9')
					x++;
				for (int i = 1; i < chars.length; i++)
					if (chars[i] == '.')
					{
						y++;
						x++;
					} else
					if (chars[i] >= '0' && chars[i] <= '9' || chars[i] == ',')
						x++;

				if (x == chars.length && y <= 1)
				{
					flag = true;
					continue;
				}
				flag = false;
			} else
			{
				flag = false;
			}
			break;
		}

		return flag;
	}
}
